package service.impl;

import java.util.ArrayList;
import java.util.List;

import pojo.Food;
import pojo.FoodType;
import service.FoodListManager;

public class FoodListManagerImplMock implements FoodListManager{

	@Override
	public List<FoodType> loadFoodType() {
		List<FoodType> types = new ArrayList<FoodType>();
		types.add(new FoodType("1","全部"));
		types.add(new FoodType("2","酒水"));
		types.add(new FoodType("3","小吃"));
		types.add(new FoodType("4","主食"));
		types.add(new FoodType("5","套餐"));
		return types;
	}

	@Override
	public List<Food> loadFoodList(String mid, String typeId) {
		List<Food> foodList = new ArrayList<Food>();
		if("1".equals(typeId)){
			
			foodList.add(new Food("3","主食C",12.5,"https://img10.360buyimg.com/n1/s200x200_jfs/t3775/118/1324998209/351033/2016778a/5823e5f9N2eee28eb.jpg","4","主食","1"));
		
		}else if("2".equals(typeId)){
			foodList.add(new Food("1","酒水B",12.5,"https://img10.360buyimg.com/n1/s200x200_jfs/t3775/118/1324998209/351033/2016778a/5823e5f9N2eee28eb.jpg","2","酒水","1"));
		}else{
			
			foodList.add(new Food("4","套餐A",12.5,"https://img10.360buyimg.com/n1/s200x200_jfs/t3775/118/1324998209/351033/2016778a/5823e5f9N2eee28eb.jpg","5","套餐","1"));
		}
		return foodList;
	}

	@Override
	public List<String> findAllMerchantIdByFoodTypeId(String tid) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Food> findAllFoods(String mid) {
		// TODO Auto-generated method stub
		return null;
	}

}
